﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using DTO.Common;


namespace ServiceInterfaces.Stores
{
    [ServiceContract]
    public interface IStoreSales
    {
        [OperationContract]
        //[FaultContract(typeof(CannotSellProductException))]
        void Sell(List<SoldProduct> products);

        [OperationContract]
        List<Product> CheckAvailability(List<SoldProduct> products);

        [OperationContract]
        ProductList GetProducts(int page, int recordsPerPage);
    }
}
